package com.example.demo.com.java8.lambda;



/**
 * @author chengfei5
 * @date 2018/8/20
 */
public class FilterColorApple implements ApplePredicate<Apple>{
    @Override
    public boolean test(Apple apple) {
        return "green".equals(apple.getColor());
    }
}
